<?php $this->includeCompiledFile('noscript.tpl'); ?>

<?php $this->getWidget(array(), '\XLite\View\Location')->display(); ?>

<?php if ($this->isTitleVisible()&&$this->getTitle()): ?><h1 class="title" id="page-title" ><?php echo $this->getTitle();?></h1><?php endif; ?>

<?php if ($this->isDisplayRequired(array('access_denied'))):
  $this->includeCompiledFile('access_denied.tpl');
endif; ?>



<?php if ($this->isDisplayRequired(array('main'))):
  $this->getWidget(array('template' => 'common/dialog.tpl', 'body' => 'menu.tpl'))->display();
endif; ?>
<?php if ($this->isDisplayRequired(array('module'))):
  $this->getWidget(array('template' => 'common/dialog.tpl', 'body' => 'general_settings.tpl'))->display();
endif; ?>

<?php if ($this->isDisplayRequired(array('categories')) && (!($this->get('mode')=='delete'))):
  $this->getWidget(array('template' => 'common/dialog.tpl', 'body' => 'categories/body.tpl'), null, 'categoriesWidget')->display();
endif; ?>
<?php if ($this->getComplex('namedWidgets.categoriesWidget.visible')):
  $this->getWidget(array('template' => 'common/dialog.tpl', 'head' => 'Featured products', 'body' => 'modules/CDev/FeaturedProducts/featured_products.tpl'))->display();
endif; ?>


<?php if ($this->isDisplayRequired(array('category')) && ($this->getCategory())):
  $this->getWidget(array('body' => $this->getPageTemplate(), 'switch' => 'page'), '\XLite\View\Tabber')->display();
endif; ?>
<?php if ($this->isDisplayRequired(array('category')) && (!($this->getCategory()))):
  $this->getWidget(array('body' => $this->getPageTemplate(), 'switch' => 'page'), '\XLite\View\Tabber')->display();
endif; ?>

<?php if ($this->isDisplayRequired(array('settings'))):
  $this->getWidget(array('body' => 'general_settings.tpl', 'switch' => 'page'), '\XLite\View\Tabber')->display();
endif; ?>

<?php if ($this->isDisplayRequired(array('recent_login'))):
  $this->getWidget(array('template' => 'common/dialog.tpl', 'body' => 'recent_login.tpl'))->display();
endif; ?>

<?php if ($this->isDisplayRequired(array('product_list'))):
  $this->includeCompiledFile('product/product_list_form.tpl');
endif; ?>

<?php if ($this->isDisplayRequired(array('product'))):
  $this->getWidget(array('body' => $this->get('pageTemplate'), 'switch' => 'page'), '\XLite\View\Tabber')->display();
endif; ?>
<?php if ($this->isDisplayRequired(array('add_product'))):
  $this->getWidget(array('body' => $this->get('pageTemplate'), 'switch' => 'page'), '\XLite\View\Tabber')->display();
endif; ?>

<?php if ($this->isDisplayRequired(array('profile')) && ($this->get('mode')=='delete')):
  $this->getWidget(array('template' => 'common/dialog.tpl', 'head' => 'Delete profile - Confirmation', 'body' => 'profile/confirm_delete.tpl'))->display();
endif; ?>

<?php if ($this->isDisplayRequired(array('order'))):
  $this->getWidget(array('template' => 'order/order.tpl'), '\XLite\View\Order\Details\Admin\Model')->display();
endif; ?>

<?php if ($this->isDisplayRequired(array('countries'))):
  $this->getWidget(array('template' => 'common/dialog.tpl', 'body' => 'countries.tpl', 'head' => 'Countries'))->display();
endif; ?>

<?php if ($this->isDisplayRequired(array('update_inventory'))):
  $this->getWidget(array('body' => $this->get('pageTemplate'), 'switch' => 'page'), '\XLite\View\Tabber')->display();
endif; ?>

<?php echo func_htmlspecialchars($this->displayViewListContent('admin.center'));?>
